<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%base_mark}}".
 *
 * @property int $id
 * @property string $mark
 */
class RentingBrandModel extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%renting_brand}}';
    }
	
	
	/**
     * @inheritdoc
     */
    public function rules()
    {
    	//此处如果不写。在页面刷新的时候回没有对应参数
        return [
        	[['bname'], 'required'], 
            [['bname'], 'string', 'max' => 100,'min'=>2],         
            [['brandloge'], 'string', 'max' => 100,'min'=>2],
            [['title'], 'string', 'max' => 100,'min'=>2]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'bname' => '公寓品牌',
            'brandloge' => '公寓loge',
            'title' => '标题',
            
        ];
    }
}
